<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>register page</title>
		<style>
			img.vc {
				cursor: pointer;
			}
			small.vc {
				color: blue;
				text-decoration: underline;
				cursor: pointer;
			}
		</style>
		<script src="js/jquery-1.9.1.min.js"></script>
		<script type="text/javascript">
		    $(function(){
		        $('.vc').click(
        			function () { 
        				$('img.vc').hide().attr('src', 'kaptcha.jpg?' + Math.floor(Math.random()*100) ).fadeIn(); 
		        	}
        		);
		    });
		</script>
	</head>
	<body>
		<h1>Register Page</h1>
		<form action="user_register" method="post">
			username: <input name="user.username"><br>
			password: <input type="password" name="user.password"><br>
			validcode: <input name="vc"><img class="vc" src="kaptcha.jpg" height="30"><small class="vc">看不清？换一个</small><br>
			<input type="submit" value="REGISTER">	
		</form>
		${requestScope.message }
	</body>
</html>